<?php
/**
 * The close view file of story module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     story
 * @version     $Id: close.html.php 4129 2013-01-18 01:58:14Z wwccss $
 * @link        http://www.zentao.net
 */
?>
<?php include './header.html.php';?>
<div id='titlebar'>
  <div class='heading'>
    <span class='prefix'><?php echo html::icon($lang->icons['story']) . ' #' . $story->id;?></span>
    <strong><?php echo html::a($this->createLink('story', 'view', "storyID=$story->id"), $story->title);?></strong>
    <small><?php echo html::icon($lang->icons['close']) . ' ' . $lang->story->close;?></small>
  </div>
</div>
  <div class='row'>
    <div class='col-md-8'>
      <div class='main'>
        <form method='post' target='hiddenwin' class='form-condensed'>
          <table class='table table-form'>
            <tr>
              <th class='w-80px'><?php echo $lang->story->closedReason;?></th>
              <td class='w-p25-f'><?php echo html::select('closedReason', $lang->story->reasonList, '', 'class=form-control onchange="setStory(this.value)"');?></td><td></td>
            </tr>
            <tr id='duplicateStoryBox' style='display:none'>
              <th><?php echo $lang->story->duplicateStory;?></th>
              <td><?php echo html::input('duplicateStory', '', 'class=form-control');?></td><td></td>
            </tr>
            <tr id='childStoriesBox' style='display:none'>
              <th><?php echo $lang->story->childStories;?></th>
              <td><?php echo html::input('childStories', '', 'class=form-control');?></td><td></td>
            </tr>
            <tr>
              <th><?php echo $lang->story->comment;?></th>
              <td colspan='2'><?php echo html::textarea('comment', '', "rows='8' class='form-control'");?></td>
            </tr>
            <tr>
              <td></td>
              <td colspan='2'>
              <?php echo html::submitButton();?>
              <?php echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));?>
              </td>
            </tr>
          </table>
        </form>
      </div>
    </div>
    <div class='col-md-4'>
      <div class='main main-side'>
        <?php include '../../common/view/action.html.php';?>
      </div>
    </div>
  </div>



<?php include '../../common/view/footer.html.php';?>
